import javax.swing.JOptionPane;

public class Lotto {
	public static void main(String[] args){
		Data storage = new Data("lotto.csv");
		String instruction = "q";
		int numbers[][];
		do{
			instruction = JOptionPane.showInputDialog("A: Show most likely\nB: Execute Custome CMD\n");
			
			if(instruction.equalsIgnoreCase("A")){
				numbers = storage.findLeastCommon();
				for(int i = 0; i < numbers[0].length;i++){
					System.out.println("Number " + (numbers[0][i]+1) + " Freq: " + numbers[1][i]);
				}
			}
			else if(instruction.equalsIgnoreCase("B")){
				storage.customMethod();
			}
			else if(instruction.equalsIgnoreCase("C")){
				storage.printNumFreqs();
			}
		}while(!instruction.equalsIgnoreCase("q"));
	}
}
